
#include "Vector.h"
#include <iostream>
#include <ctime>

int main(int argc, char *argv[])
{

  clock_t start, end;

  int time = 0;
  int N;

  int SPARE_CAPACITY;
  std::cin >> N;
  std::cin >> SPARE_CAPACITY;
  start = clock();
  for (int round = 1; round <= 100; round++) ///进行100次实验
    for (int i = 1; i <= N; i++)             ///对于1~N情况各测试一次（符合均匀分布）
    {
      Vector<int> vec(SPARE_CAPACITY,0);                  ///创建空向量

      for (int j = 1; j <= i; j++)
      {
        vec.push_back(0);                    ///运行i次push_back
      }

    }

  end = clock();
  time = end - start;
  std::cout << "SPARE_CAPACITY为 " << SPARE_CAPACITY << " 用时： " << time << "  单位时间\n"
            << std::endl;
};
